import Home from '../pages/Home'
import Users from '../pages/Users'

interface IRoutes {
  name: string
  title: string
  path: string
  component: React.FunctionComponent<any>
}
const routes: IRoutes[] = [
  {
    name: 'home',
    title: '首页',
    path: '/home',
    component: Home
  },
  {
    name: 'users',
    title: '用户管理',
    path: '/users',
    component: Users
  }
]

export default routes
